-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
install: prevent TOCTOU race attack #10067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
I suspect that the failure is a flaky test as it is unrelated to the changes. I pulled in the latest changes from main just in case. |
|
GNU testsuite comparison: |
Merging this PR will not alter performance
Comparing Footnotes
|
|
GNU tests failed because downloading a test dependency failed. Must be a flaky test. Brought up to date with master again. Please re-run tests again. |
|
I'm certain that the test failures are disjoint from the changes. Any idea as to why they continue to fail? |
|
GNU testsuite comparison: |
Description
See #10023 for details on the vulnerability and how to test/reproduce.
This PR fixes the vulnerability by using atomic exclusive creation with the O_EXCL flag.
Testing
test_install_replaces_symlink()to verify install doesn't follow symlinks